void simple_delay_ms(unsigned int ms) {
    while (ms--) {
        for (volatile unsigned int i = 0; i < 8000; ++i) {
            __asm__("nop");
        }
    }
} 